package org.blogwu.learn.jvmlearn.class1;

import java.io.IOException;
import java.net.URL;
import java.util.Enumeration;
import java.util.HashMap;

public class MyTest14 {

    public static void main(String[] args) throws IOException {
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
//        System.out.println(classLoader);
        String name = "org/blogwu/learn/jvmlearn/class1/MyTest13.class";
        Enumeration<URL> enumeration = ClassLoader.getSystemResources(name);
        while (enumeration.hasMoreElements()) {
            URL url = enumeration.nextElement();
            System.out.println(url);
        }
        System.out.println(MyTest14.class.getClassLoader());

        System.out.println(String.class.getClassLoader());
        System.out.println(HashMap.class.getClassLoader());


    }
}
